package com.graden.background.controller.sysrole.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjf
 * @since 2019-03-21
 */
@Data
@ApiModel
public class RoleAddVO {

    /**
     * 角色名称
     */
    @ApiModelProperty(name = "角色名称", value = "name", example = "后台支持者")
    @NotBlank(message = "ROLE_0005")
    private String name;


    /**
     * 选择菜单权限
     */
    @ApiModelProperty(name = "菜单权限集合", value = "name")
    private Integer[] menus ;

    /**
     * 选择功能权限
     */
    @ApiModelProperty(name = "功能权限集合", value = "name")
    private Integer[] functions ;
}
